public class AddTest extends MathTest{
    @Override
    public int calculate() {
        int rs = getA()+getB();
        System.out.println(getA()+"+"+getB()+"="+"?");
        return rs;
    }

    @Override
    String getQuestion() {
        String str =getA()+"+"+getB()+"="+"?"+"\t"+"参考答案："+(getA()+getB());
        return str;
    }


}
